<template>
	<!-- 查询订单组件 -->
	<view class="selectOrderList">
		<view class="selectOrderList-date">
			<text class="time">{{resultData.start}}</text>
			<text class="centerText">至</text>
			<text class="time">{{resultData.end}}</text>
		</view>
		<none v-if="resultData.list.length==0"></none>
		<view class="selectOrderList-main" v-else>
			<view class="resultData-content" v-for="(item,index) in resultData.list" :key="index">
				<view class="addressinfo">
					<view class="address-text">
						<view class="addressinfo-title">上门地址</view>
						<view class="text">{{item.location}}{{item.detail}}</view>
					</view>
					<view class="icon iconfont icon-xiangyoujiantou"></view>
				</view>
				<view class="addressinfo appoint-time ">
					<view class="address-text">
						<view class="addressinfo-title">预约时间</view>
						<view class="text">{{item.reservetime}}</view>
					</view>
				</view>
				<view class="addressinfo end-time">
					<view class="address-text">
						<view class="addressinfo-title">完成时间</view>
						<view class="text">{{item.finishtime}}</view>
					</view>
				</view>
			</view>
			<nomore></nomore>
		</view>
	</view>
</template>

<script>
	import none from "@/otherPages/none/none.vue"
	import nomore from "@/component/noMore.vue"
	export default {
		components: {
			none,
			nomore
		},
		props: {
			resultData: Object
		},
		data() {
			return {

			}
		},
		watch: {
			resultData(value) {
				console.log("子组件中的值", value)
				this.resultData = value
			}
		},
		mounted() {},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.selectOrderList {
		.selectOrderList-date {
			text-align: center;
			padding: 30rpx 0;
			box-sizing: border-box;

			.time {
				color: #00b388;

			}

			.centerText {
				display: inline-block;
				margin: 0 20rpx;
				color: #818181;
			}
		}

		.selectOrderList-main {
			padding: 20rpx;
			border-radius: 20rpx;
			.resultData-content{
				margin-top: 20rpx;
			}
			.addressinfo {
				padding: 20rpx;
				background: #fff;
				border-radius: 20rpx 20rpx 0 0;
				box-sizing: border-box;
				display: flex;
				align-items: center;
				justify-content: space-between;

				.address-text {
					display: flex;
					width: 80%;

					.addressinfo-title {
						width: 120rpx;
						font-size: 25rpx;
						color: #6c6c6c;
						// border: 1px solid #4fc3a5;
					}

					.text {
						font-size: 28rpx;
						margin-left: 20rpx;
					}

				}

				.icon-xiangyoujiantou {
					// flex:1;
					margin-left: auto;
				}
			}
			.end-time{
				border-radius: 0;
				border-radius: 0 0 20rpx 20rpx;
				.text{
					color: #818181;
				}
			}
			.appoint-time{
				border-bottom: 2rpx solid #f6f6f6;
			}
		}
	}
</style>